Incoming Telegram Chat Event
By utilizing this event node, a new workflow instance is started whenever a user initiates a new chat with a Telegram Bot that you have created. Bots are special accounts that a user can chat with. The workflow will be started with certain variables containing information about the chat that you can use to perform additional actions and respond to the user.
Cocosplate AI helps with maintaining the chat contexts with each of the users, while you can establish user interaction with a clear and concise dialog model.
Variables​
These values are automatically set when a new chat is started:
Variable | Description |
---|---|
telegram.message_text | The text that was sent to the bot |
telegram.chat_id | Chat identifier |
telegram.api_token | Token of the bot |
telegram.message_from_username | The user that initiated the chat |
telegram.message_from_firstname | First name |
telegram.message_from_lastname | Last name |
telegram.message_from_languagecode | Language of the user |
telegram.message_from_isbot | Whether the user itself is a bot |